package cn.cmeizu.spring6;

import cn.cmeizu.spring6.impl.CalculatorImpl;

/**
 * @author cmeizu
 * @date 2023/2/12 01:26
 */
public class TestCalc {
  public static void main(String[] args) {
    //创建代理对象
    ProxyFactory proxyFactory = new ProxyFactory(new CalculatorImpl());
    Calculator proxy = (Calculator) proxyFactory.getProxy();
    proxy.add(1, 2);
    proxy.sub(1, 2);
    proxy.mul(1, 2);
    proxy.div(4, 2);
  }
}
